<div class="main-content">
	<header>
		<a href="<?php echo bu('admin/webinars/new'); ?>" class="fr button button-gray">New Webinars</a>
		<h2>Edit Webinar</h2>
	</header>

	<section>
		<form id="form" class="form" novalidate="true" action="<?php echo bu('admin/webinars/update'); ?>" method="POST">
			<fieldset>
				<legend>Edit Webinar</legend>
				<label>Subject <em>*</em></label>
				<input type="text" name="Webinars[subject]" required="required" value="<?php echo $webinar->subject; ?>" />

				<label>URL <em>*</em> <small>Langsung diketik alamat url nya (menggunakan http://)</small></label>
				<input type="text" name="Webinars[url]" required="required" value="<?php echo $webinar->url; ?>" />

				<label>For <em>*</em></label>
				<select name="Webinars[member_id]" required="required">
          <option value="0" <?php if($webinar->member_id == 0){ echo "selected"; } ?>>All Members</option>
					<?php foreach($members as $member){ ?>
					<option value="<?php echo $member->id; ?>" <?php if($member->id == $webinar->member_id){ echo "selected"; } ?>><?php echo $member->name; ?></option>
					<?php } ?>
				</select>

        <input type="hidden" name="Webinars[id]" value="<?php echo $_GET['id']; ?>" />

				<div class="action">
						<button class="button button-gray" type="submit"><span class="accept"></span>OK</button>
						<button class="button button-gray" type="reset">Reset</button>
				</div>
			</fieldset>
	</section>
</div>